<a href="/webrest" class="btn btn-success">添加资源</a>
<div class="alert alert-warning">
    <strong>注意!</strong>
    请勿随意修改,以免影响系统运行
</div>
<table class="table table-condensed table-bordered table-striped table-hover">
    <thead>
       <th>名称</th>
       <th>类型[0-默认|1-自定义]</th>
       <th>URL</th>
       <th>管理</th>
    </thead>
    <tbody>
    <% for(var i = 0; i < beans.length; i++) { %>

    <tr>
       <td>
          <%= beans[i].name%>

       </td>
        <td>
            <span class="label label-primary">

                 <%= beans[i].mtype==0?"内置":"自定义"%>
            </span>

        </td>
       <td>
         <code>

           <%=beans[i].webpath%>
         </code>
       </td>

        <td>
            <%if(beans[i].mtype!=0){%>
             <%- link_to('修改','/webrest/findone/'+beans[i]._id)%>

             <%- link_to('删除','/webrest/remove/'+beans[i]._id)%>
           <%} else {%>
              <span class="label label-danger">默认不支持</span>
            <%}%>
        </td>
    </tr>

    <% } %>
   </tbody>
    <tfoot>
      <tr>

        <td colspan="5">
            <%-pagination%>
        </td>

      </tr>

    </tfoot>
</table>